package com.me.modules.sys.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.me.modules.common.entity.BaseEntity;
import lombok.Data;
//import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.List;


/**
 * 系统用户表
 *
 * @author chenshun
 * @email me@163.com
 * @Date 2018-05-03 09:41:38
 */
//@Document(indexName = "itsm",type = "user", shards = 1,replicas = 0, refreshInterval = "-1")
@Data
@TableName("sys_user")
public class UserEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	//角色ID列表
	@TableField(exist = false)
	private List<Integer> roleIdList;

	//组id列表
	@TableField(exist = false)
	private List<Integer> groupIdList;

	//id主键
	private Integer id;
	/**
	 * 机构ID【FK】(上级)
	 */
	@TableField(exist = false)
	private Integer bapid;
	//用户名
	private String userName;
	//登陆帐户
	private String loginName;
	//密码
	private String passWord;
	//状态(0正常 -1禁用)
	private Integer status;
	//电话
	private String phone;
	//头像
	private String photo;
	//邮箱
	private String email;
	//salt盐加密
	private String salt;

	/**
	 * 新密码
	 */
	@TableField(exist = false)
	private String newPassWord;

	/**
	 * 部门ids 部门数据权限
	 */
	@TableField(exist = false)
	private Integer baids;
	/**
	 * 机构ids 机构数据权限
	 */
	@TableField(exist = false)
	private Integer bapids;
}
